﻿using System;
using System.Collections.Generic;
using System.Linq;

class Solution
{
    public static void Main(string[] args)
    {
        List<string> results = new List<string>();
        for (int i = 1; i <= 4; i++)
            for (int j = 1; j <= 4; j++)
                for (int k = 1; k <= 4; k++)
                    if(i != j && i != k && j != k){
                        results.Add((i * 100 + j * 10 + k).ToString());
                    }
        Console.WriteLine("共有" + results.Count + "个互不相同且无重复数字的三位数，分别是：");
        foreach (string result in results)
        {
            Console.WriteLine(result);
        }


    }
}
